package com.kylin.domain.commodity.vo;

import com.kylin.shared.enums.ApprovalState;
import com.kylin.shared.enums.YesNoEnum;
import lombok.Builder;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 商品
 * @author Damon S.
 * @version v1.0.1
 * @date 2020年01月06日 20:22
 */
@Data
@Builder
public class CommodityVO {
    private Long    commodityId;
    private String  code;
    private String  title;
    private String  subtitle;
    private Integer inventory;
    private Long    price;
    private String  cover;
    private Long    merchantId;
    private ApprovalState state;
    private List<AlbumVO> albums;
    private YesNoEnum removed;
    private YesNoEnum shelved;
    private Long    createdBy;
    private Long    updatedBy;
    private Long    removedBy;
    private LocalDateTime putOffAt;
    private LocalDateTime    shelvedAt;
    private LocalDateTime    approvedAt;
    private LocalDateTime    refusedAt;
    private LocalDateTime    createdAt;
    private LocalDateTime    updatedAt;
    private LocalDateTime    removedAt;

    public static final CommodityVO EMPTY =
            CommodityVO.builder().build();
}
